package com.loongtech.core.jpa.entity;

import java.io.Serializable;

import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public class EntityLong extends EntityBase {
	private static final long serialVersionUID = 1L;
	@Id
	protected long id;				//主键
	
	@Override
	public Serializable id() {
		return getId();
	}
	
	public long getId() {
		return id;
	}
 
	public void setId(long id) {
		this.id = id;
	}
}